package com.xxxx.server.base;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Page {

    private Integer total;
    private Object data;

    public static Page respDataTotal(Object data,Integer total){
        return new Page(total,data);
    }
    public static Page respData(Object data){
        return new Page(data);
    }

    public Page(Object data) {
        this.data = data;
    }
}
